import request from '@/utils/request'

// 查询文章分类列表
export function listArticleCate(query) {
  return request({
    url: '/manager/articleCate/list',
    method: 'get',
    params: query
  })
}

// 查询文章分类列表
export function listallArticleCate(query) {
  return request({
    url: '/manager/articleCate/listall',
    method: 'get',
    params: query
  })
}

// 查询文章分类详细
export function getArticleCate(id) {
  return request({
    url: '/manager/articleCate/' + id,
    method: 'get'
  })
}


// 新增文章分类
export function addArticleCate(data) {
  return request({
    url: '/manager/articleCate',
    method: 'post',
    data: data
  })
}

// 修改文章分类
export function updateArticleCate(data) {
  return request({
    url: '/manager/articleCate',
    method: 'put',
    data: data
  })
}


// 删除文章分类
export function delArticleCate(id) {
  return request({
    url: '/manager/articleCate/' + id,
    method: 'delete'
  })
}

